<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
    {% csrf_token %}
    {% for i in recipe%}名字:<input type="text" name="cname" value="{{ i.cname }}">
    <br>
    诊断结果:<input type="text" name="result" value="{{ i.result }}">
    <br>
    医生名字:<input type="text" name="doctor" value="{{ i.doctor }}">
    <br>
    患者:<input type="text" name="hname" value="{{ i.hname }}">
    <br>
    {% for foo in doctor %}
        <option value="{{ foo.id }}">{{ foo.truename }}</option>

    {% endfor %}
    </select>
    <input type="submit" value="修改">
    {% endfor %}
</form>
</body>
</html>